From b02b262a7cedeb3114ca0d539e2affcfbea80af9 Mon Sep 17 00:00:00 2001 From: tycho Date: Tue, 23 Jun 2015 21:16:38 +0100 Subject: Call Neighbour changed handlers when a melon is created Should prevent cascading farmland updates on breaking melons --- src/Chunk.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Chunk.cpp b/src/Chunk.cpp index 3897ea3a8..a3192f638 100644 --- a/src/Chunk.cpp +++ b/src/Chunk.cpp @@ -1035,6 +1035,9 @@ void cChunk::GrowMelonPumpkin(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_Bl Meta ); VERIFY(UnboundedRelFastSetBlock(a_RelX + x, a_RelY, a_RelZ + z, ProduceType, Meta)); + auto Absolute = RelativeToAbsolute(Vector3i{a_RelX + x, a_RelY, a_RelZ + z}, m_PosX, m_PosZ); + cChunkInterface ChunkInterface(this->GetWorld()->GetChunkMap()); + cBlockHandler::NeighborChanged(ChunkInterface, Absolute.x, Absolute.y, Absolute.z); break; } } -- cgit v1.2.3